import Request from '@/axios/request'

export function getAdminOperationLogs(params) {
  return Request.get('admin-operation-logs', { params })
}

export function createAdminOperationLog() {
  return Request.get('admin-operation-logs/create')
}

export function storeAdminOperationLog(data) {
  return Request.post('admin-operation-logs', data)
}

export function updateAdminOperationLog(id, data) {
  return Request.put(`admin-operation-logs/${id}`, data)
}

export function editAdminOperationLog(id) {
  return Request.get(`admin-operation-logs/${id}/edit`)
}

export function destroyAdminOperationLog(id) {
  return Request.delete(`admin-operation-logs/${id}`)
}

export function showAdminOperationLog(id) {
  return Request.get(`admin-operation-logs/${id}`)
}
